//引入请求库
import http from '../utils/http2.js'; 
import { da } from "@faker-js/faker";

/**
 * 查询员工
 * @param {*} data 
 * @returns 
 */
export function queryEmployess(data) {
  return http.post("/api/employess/list", data);
}


/**
 * 保存员工
 * @param {*} data 
 * @returns 
 */ 
export function saveEmployess(data) {
  return http.post("/api/employess", data);
}

/**
 * 查询员工详情
 * @param {*} id 
 * @returns 
 */
export function getEmployessDetail(employessId) {
 return http.get("/api/employess" , {employessId});
}

/**
 * 修改
 * @param {*} data 
 * @returns 
 */
export function updateEmployess(data) {
  return http.put("/api/employess", data);
}